﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SystemLogin.aspx.cs" Inherits="Web.Views.SystemLogin.SystemLogin" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>大庆档案综合管理平台</title>
<link href="../../Styles/Login_style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
    window.onload = function() {
        self.moveTo(0, 0);
        self.resizeTo(screen.availWidth, screen.availHeight);
        
        document.getElementById('txtUserID').select();
        document.getElementById('txtUserID').focus();
    }


    function enterKey(e) {//按enter登录
        var code;
        if (!e) {
            var e = window.event;
        }
        if (e.keyCode) {
            code = e.keyCode;
        }
        else if (e.which) {
            code = e.which;
        }
        if (code == 13) {
            document.getElementById("ImageButton1").click();
            ///这里是调用执行的方法
            /// return false;
        }
    }

    function redirectLocation() {
        if (window.top != window) {
            window.top.location.reload();
        }
    }

    //重置
    function ClearInputs() {
        document.getElementById('txtUserID').value = "";
        document.getElementById('txtPasswd').value = "";
    }
</script>
</head>
<body>
<form runat="server" id="form1">

<div id="wrap">
  <div id="banner1_login"></div>
  <div id="banner2_login"></div>
  <div id="banner3_login">
    <div id="login_panel"> 
        <span class="input1">
          <input type="text" id="txtUserID" name="username" runat="server" class="input_box" onkeydown="enterKey()"/>
        </span> 
        <span class="input2">
          <input type="password" id="txtPasswd" name="password" runat="server" class="input_box" onkeydown="enterKey()"/>
        </span>
        <div id="btn_login">
            <input class="button" id="ImageButton1" type="Button" runat="server" onMouseOver="this.className='over';" onMouseOut="this.className='button';" onMouseDown="this.className='down';" onMouseUp="this.className='over';" value=" " name="Button" onFocus="this.blur()"/>
        </div>
    </div>
    <div id="icon_links">
        <ul>
          <li><img src="../../images/portal/login/i_link1.png" alt="" class="l_icon" /><a href="../TempUserManage/TempUserLogin.aspx">临时用户登录</a></li>
<%--          <li><img src="../../images/portal/login/i_link2.png" alt="" class="l_icon" /><a href="../../HelpDocs/常见问题.doc"target="_blank">使用帮助</a></li>
          <li><img src="../../images/portal/login/i_link3.png" alt="" class="l_icon" /><a href="../../HelpDocs/浏览器设置.doc" target="_blank">IE设置</a></li>--%>
        </ul>
    </div>
  </div>
  <div id="banner4_login">
    <div id="copy">Copyright © 2012&nbsp;大庆档案综合管理平台&nbsp;All Rights Reserved.</div>
  </div>
</div>
<div>
    <table align="center" width="100%" border="0">
										
        <tr>
		    <td valign="middle" align="center">
			    <asp:Label Runat="server" ID="lblErrorMessage" ForeColor="red"></asp:Label>
			    <asp:RequiredFieldValidator id="RequiredFieldUserID" runat="server" Display="None" ControlToValidate="txtUserID" ErrorMessage='请输入用户名'>
				</asp:RequiredFieldValidator>
				<asp:RequiredFieldValidator id="RequiredFieldPassword" runat="server" Display="None" ControlToValidate="txtPasswd" ErrorMessage='请输入密码'>
				</asp:RequiredFieldValidator>
				<asp:ValidationSummary id="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" >
				</asp:ValidationSummary>
			</td>
		</tr>
		<tr>
		    <td valign="bottom">
			    <asp:Literal Runat="server" ID="Literal1"></asp:Literal>
			</td>
		</tr>
	</table>
</div>
</form>
</body>
</html>



